Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference


sendEmail

This procedure sends an e-mail message. This procedure is similar to notifyUser, but is more flexible and has additional options specific to sending an e-mail message. Most of the parameters are optional and can be left blank, as appropriate. The procedure allows multiple file attachments to be sent using comma-delimited lists. Because this procedure uses MAPI for client e-mail, it works with whatever e-mail is installed on the client PC sending the e-mail. On the server, it uses sendmail, and some options might not be supported.

Location: af\app\afsesmngrp.i

Parameters:

INPUT cEmailProfile AS CHARACTER

The mail profile to use, for example, Microsoft Outlook.

INPUT cToEmail AS CHARACTER

A comma-delimited list of e-mail addresses to which the message is sent.

INPUT cCcEmail AS CHARACTER

A comma-delimited list of e-mail addresses to which the message is copied.

INPUT cSubject AS CHARACTER

The subject of the message.

INPUT cMessage AS CHARACTER

The message text.

INPUT cAttachmentName AS CHARACTER

A comma-delimited list of attachment filenames.

INPUT cAttachmentFPath AS CHARACTER

A comma-delimited list of attachment filenames with full path.

INPUT lDisplayDialog AS LOGICAL

If set to YES, the message is displayed in a dialog box for modification before sending. If set to NO, then the message is sent immediately.

INPUT iImportance AS INTEGER

The accepted values are: 0 = low, 1 = medium, 2 = high.

INPUT lReadReceipt AS LOGICAL

YES = return a read receipt.

INPUT lDeliveryReceipt AS LOGICAL

YES = return a delivery receipt.

INPUT cOptions AS CHARACTER

Not currently used, set aside for future settings. It can contain a comma-delimited list of setting-value pairs of other settings.

OUTPUT cFailedReason AS CHARACTER

If the procedure failed, returns the reason why. Otherwise, returns blank, "".

Notes: None

Examples: See the notifyUser procedure in af\app\afsesmngrp.i.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095